<script>
jQuery(document).ready(function($){	

	$("#voltar").click(function() {

		var student = "<?php echo $student ?>";
		
		var url = "<?php echo WWW_APP.'follow/' ?>"; 

		window.location.href = url;
	}); 
});
</script>
<div class="units">
	<?php if(!empty($units)): ?>
		<ul>
			<?php foreach($units as $unit):?>
				<li>
					<a href="<?php echo WWW_APP.'follow/log/student/'.$userid.'/unit/'.$unit->id?>"><?php echo $unit->name;?></a>
				</li>
			<?php endforeach;?>
		
		</ul>
	<?php else:?>
		<p>Nenhum objeto de aprendizagem cadastrado.</p>	
	<?php endif;?>
	<br class="clear" />
	<input id="voltar" type="button" value="Voltar" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only">
</div>